#include "Field.h"

Field::Field() : m_occupyer(-1), debugger(Debug::getInstance()){
};

Field::Field( Field &rhs )  : debugger(Debug::getInstance()), m_occupyer(rhs.getOccupancy()) {
}

Field::~Field() {
	debugger = 0;
}

void Field::setOccupancy( int player ) { 
	m_occupyer = player ; 
}

Field& Field::operator=( Field &rhs ) {
	if( this != &rhs) {
		m_occupyer = rhs.getOccupancy();
	}
	return *this;
}